home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!not-for-mail
- From: gbe@primenet.com (Gary Edstrom)
- Newsgroups: comp.lang.c++
- Subject: Re: Help Wanted: Win95 Visual C++: Getting a Process ID
- Date: 27 Feb 1996 21:03:01 -0700
- Organization: Sequoia Software
- Sender: root@primenet.com
- Message-ID: <3133d466.340349558@news.primenet.com>
- References: <31320d3e.6676641@news.primenet.com> <313356B0.6258@afrodite.kih.no>
- X-Posted-By: ip081.lax.primenet.com
- X-Newsreader: Forte Agent .99d/32.182
-
- Paul Kenneth Egell-johnsen <paulken4@afrodite.kih.no> wrote:
- On Tue, 27 Feb 1996 20:08:32 +0100, you wrote:
-
- >Gary Edstrom wrote:
- >
- >> What I want to do is as follows: We have a program that is currently
- >> made up of 4 different processes. One of the processes is responsible
- >> for starting all of the others. Before starting any of the child
- >> processes, however, I want to check if they are already running on the
- >> system and if so, to terminate them before performing a new startup.
- >
- >Why would you do that? The user would get pretty pissed if you
- >close down a process which you haven't created (in this
- >program).
- >
- >Either you should notify the user first, or you just start a
- >copy of the process, containing the new data or whatever.
-
- This is not your typical program. It is the ONLY program running on a
- dedicated hospital based patient EKG monitoring system. Having a
- watchdog program to keep an eye on all of the other process that it
- has started is a legal requirement for us. If the watchdog detects
- that one of its child processes has crashed or locked up, it needs to
- clear that process out of memory and restart it. It CANNOT wait for
- an operator OK. It MUST be automatic. If it is unable to restart the
- process, then it will automatically restart the system. If the
- watchdog program itself has locked up or crashed, there is a hardware
- based timer board in the computer that will execute a hardware reset
- when it has not received tickle pulses from the watchdog for a
- specific period of time. In other words, the system must be fail-safe
- and be able to recover from random system crashes. When the system is
- first started, I want the watchdog to be able to check if any of the
- processes that it will be responsible for are currently running in
- memory. If so, they are to be killed, as it is only valid to have a
- single copy of every process running.
-
- --
- Gary Edstrom <gbe@primenet.com> | Sequoia Software
- PO Box 9573 | Programming & Technical Services
- Glendale CA 91226-0573 | PGP Key ID: 0x1A0D44BD
- PGP Fingerprint: 72 AA 4F 73 05 53 89 C6 8A EE F4 EE D1 C0 13 8D
-